import { BrowserRouter as Router, Route, Routes } from 'react-router-dom'
import Login from './pages/Login'
import Home from './pages/Home'
import Patients from './pages/Patients'
import MZ from './pages/MZ'
function App() {

  return (
    <Router>
      <Routes>
        {/* 登录页 */}
        <Route path='/' element={<Login />}></Route>
        {/* 内容主页 */}
        <Route path='/home' element={<Home />}>
          <Route index element={<Patients />} />
          <Route path="mz" element={<MZ />} />
        </Route>
      </Routes>
    </Router>
  )
}

export default App
